<?php

$self = array(
	'name' => 'CQuestVotes',

	'type' => 'collection',

	'fields' => array(
		array( 'name' => 'quest_oid'		, 'type' => 'integer' , ) ,
		array( 'name' => 'vote_id'			, 'type' => 'integer'  , 'size' => 2 , ) ,
		array( 'name' => 'doc_oid'			, 'type' => 'integer' , ) ,
		array( 'name' => 'user_oid'			, 'type' => 'integer' , ) ,
		// auth
		array( 'name' => 'vote'				, 'type' => 'text'  , ) ,
		array( 'name' => 'ball'				, 'type' => 'integer'  , 'size' => 4 , ) ,
	),

	'primary_key' => array('quest_oid','vote_id','doc_oid','user_oid'),

	'db' => array('name' => 'quest_votes'),

	'implement' => 'collections/collection.php#collection',
);